import { createApp } from 'vue'
import ElementPlus from 'element-plus'
import 'element-plus/theme-chalk/index.css'

import { fetchLib, configFetchLib } from '@suit/fetch-lib'

debugger
configFetchLib({
  unpkg: "https://tech.suitbim.com/",
  tag: "latest"
})


fetchLib('@suit/promis-front-module-quanzi').then(res => {
  console.log(res)
}).catch(err => {
  console.log(err)
})

// 这种不支持 因为我们的基本的打包规则都是 dist/system/index.js
fetchLib('https://tech.suitbim.com/@suit/promis-front-module-quanzi@1.0.3').then(res => {
  console.log(res)
}).catch(err => {
  console.log(err)
})

fetchLib('https://tech.suitbim.com/@suit/promis-front-module-quanzi/dist/system/index.js').then(res => {
  console.log(res)
}).catch(err => {
  console.log(err)
})

fetchLib('https://tech.suitbim.com/@suit/promis-front-module-quanzi@1.0.3/dist/system/index.js').then(res => {
  console.log(res)
}).catch(err => {
  console.log(err)
})



import App from './App.vue'

createApp(App).use(ElementPlus).mount('#app')


